package com.lanxiao.cloud.modules.user.application.dto;

import com.lanxiao.cloud.common.core.dto.Dto;
import com.lanxiao.cloud.common.core.enums.SexEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * @author ：qiaoliang
 * @date ：2021-09-13
 */
@ApiModel("用户信息返回模型")
public class UserDto extends Dto<Long> {
  @ApiModelProperty("昵称")
  private final String name;
  @ApiModelProperty("头像")
  private final String portrait;
  @ApiModelProperty("性别")
  private final SexEnum sex;
  @ApiModelProperty("手机号")
  private final String phone;
  @ApiModelProperty("部门Id")
  private final Long deptId;
  @ApiModelProperty("部门名称")
  private String deptName;
  @ApiModelProperty("角色名称")
  private String roleName;
  @ApiModelProperty("签名")
  private final String autograph;

  public UserDto(Long id, String name, String portrait,
      SexEnum sex, String phone, Long deptId, String autograph) {
    super(id);
    this.name = name;
    this.portrait = portrait;
    this.sex = sex;
    this.phone = phone;
    this.deptId = deptId;
    this.autograph = autograph;
  }

  public String getName() {
    return name;
  }

  public String getPortrait() {
    return portrait;
  }

  public SexEnum getSex() {
    return sex;
  }

  public String getPhone() {
    return phone;
  }

  public Long getDeptId() {
    return deptId;
  }

  public String getDeptName() {
    return deptName;
  }

  public String getRoleName() {
    return roleName;
  }

  public void setRoleName(String roleName) {
    this.roleName = roleName;
  }

  public void setDeptName(String deptName) {
    this.deptName = deptName;
  }

  public String getAutograph() {
    return autograph;
  }
}
